﻿using System;
using System.Collections;
using Meqs.Entity;
using Meqs.Logic.Interface;

public partial class Credit_Teacher_Reprots_Left : ContainerBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();
        ht.Add("TeacherID", Common.GetUserInfo().UID);
        ht.Add("SecurityID", (int)SecurityTable.Security.Credit_CanView);
        ht.Add("SecurityValue", SecuritySetting.SecurityValues.Show_MySchool_Security);
        ht.Add("SchoolYear", SchoolCommon.Sch_SchoolInfo.SchoolYear);
        ht.Add("Term", SchoolCommon.Sch_SchoolInfo.SchoolTerm);
        int value = Container<ISecuritySettingLogic>.Instance.GetOperatorSecurityValue(ht);
        hidIsManager.Value = value > 0 ? "1" : "0";

        ht = new Hashtable();
        ht.Add("TeacherID", Common.GetUserInfo().UID);
        ht.Add("SecurityID", (int)SecurityTable.Security.Credit_CanView);
        ht.Add("SecurityValue", SecuritySetting.SecurityValues.Show_MyClass_Security);
        ht.Add("SchoolYear", SchoolCommon.Sch_SchoolInfo.SchoolYear);
        ht.Add("Term", SchoolCommon.Sch_SchoolInfo.SchoolTerm);
        value = Container<ISecuritySettingLogic>.Instance.GetOperatorSecurityValue(ht);
        hidIsTeacher.Value = value > 0 ? "1" : "0";

    }
}
